package module.scene.view.nodes
{
	import com.darwin.darwinBitmapEngine.core.Node;
	import com.darwin.darwinUI.core.UIComponent;
	import com.darwin.darwinUtils.BitmapDataTool;
	
	import flash.display.BitmapData;
	
	public class TipNode extends Node
	{
		public var tipType:String = "";
		private var _source:UIComponent;
		public function TipNode(source:UIComponent,tipType:String = "")
		{
			var bitmapData:BitmapData = BitmapDataTool.getBitmapData(source);
			super(bitmapData);
			this.tipType = tipType;
		}
		
		public function set source(v:UIComponent):void
		{
			if(_source != v)
			{
				_source = v;
				this.bitmapData = BitmapDataTool.getBitmapData(_source);
			}
		}
		
		public function get source():UIComponent
		{
			return _source;
		}
	}
}